# -*- coding: utf-8 -*-
# @Time : 2021/10/15 0015 8:55
# @Author : Administrator
# @Email : wayne_lau@aliyun.com
# @File : start.py
# @Project : python-json-tool

import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
import PyQt5.QtGui as qg
import main

if __name__ == '__main__':
    app = QApplication(sys.argv)

    MainWindow = QMainWindow()
    ui = main.Ui_mainWindow()
    ui.setupUi(MainWindow)

    # 设置窗口标题
    # set icon and window's title
    MainWindow.setWindowTitle("json解析工具V1.0")
    MainWindow.setWindowIcon(qg.QIcon("icons/json_favicon.ico"))

    MainWindow.show()

    sys.exit(app.exec_())
